home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.FocusEvent;
- import java.awt.event.FocusListener;
-
- public class BasicComboBoxUI$FocusHandler implements FocusListener {
- // $FF: synthetic field
- private final BasicComboBoxUI this$0;
-
- public BasicComboBoxUI$FocusHandler(BasicComboBoxUI var1) {
- this.this$0 = var1;
- }
-
- public void focusGained(FocusEvent var1) {
- this.this$0.hasFocus = true;
- this.this$0.comboBox.repaint();
- }
-
- public void focusLost(FocusEvent var1) {
- this.this$0.hasFocus = false;
- if (!var1.isTemporary() && this.this$0.comboBox.isLightWeightPopupEnabled()) {
- this.this$0.setPopupVisible(this.this$0.comboBox, false);
- }
-
- this.this$0.comboBox.repaint();
- }
- }
-